CC      :=  gcc
CFLAGS  :=  
LDFLAGS :=  -Wl,-rpath=./tongsuo/lib64

LIBS    :=  -L./tongsuo/lib64 -lssl -lcrypto 
INCS    :=  -I./tongsuo/include 

PROJCE  :=  simplevpn

SRC     =   simplevpn.1.1.c
OBJ     =   $(SRC:.c=.o)


.PHONY:  all clean

all: $(PROJCE)

%.o:%.c
	$(CC) -c  $(CFLAGS) $(INCS) $< -o $@

$(PROJCE): $(OBJ)
	$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)


clean:
	rm -f $(OBJ) $(PROJCE)

